import Vue from "vue"
import App from "./App.vue"
import router from "./router"
import ElementUI from "element-ui"
import "element-ui/lib/theme-chalk/index.css"

import { createPinia, PiniaVuePlugin } from "pinia"
import { createPersistedState } from "pinia-persistedstate-plugin"
import VueCookies from "vue-cookies"
import VueParticles from "vue-particles"

Vue.use(VueParticles)
Vue.use(VueCookies)
Vue.use(PiniaVuePlugin)

const pinia = createPinia()

pinia.use(createPersistedState()) //开启缓存，存储在localstorage

var Base64 = require("js-base64").Base64

// 导入图标库
import "@/assets/icon/iconfont.css"

Vue.config.productionTip = false
Vue.use(ElementUI)
new Vue({
	pinia,
	router,
	render: (h) => h(App),
}).$mount("#app")
